<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ValidationGroupsPage.aspx.cs" Inherits="ValidationGroupsPage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <div>
            Please enter your email to receive our letter:<br />
            Email:
            <asp:TextBox ID="txtEmail" runat="server" ValidationGroup="letter"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="RequiredFieldValidator" ControlToValidate="txtEmail" ValidationGroup="letter">Please enter your email</asp:RequiredFieldValidator><br />
            &nbsp;<asp:Button ID="Button1" runat="server" PostBackUrl="~/ValidationGroups.aspx"
                Text="GO" ValidationGroup="letter" Width="50px" /><br />
            -----------------------------------------------------------------<br />
            Search:<br />
            Keyword:
            <asp:TextBox ID="txtKeyword" runat="server"></asp:TextBox>
            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" ControlToValidate="txtKeyword"
                ErrorMessage="RequiredFieldValidator" SetFocusOnError="True">Please enter your email</asp:RequiredFieldValidator><br />
            Certificate:
            <asp:DropDownList ID="ddlCertificate" runat="server" Width="115px">
                <asp:ListItem></asp:ListItem>
                <asp:ListItem>B.A</asp:ListItem>
                <asp:ListItem>B.S</asp:ListItem>
                <asp:ListItem>M.B.A</asp:ListItem>
                <asp:ListItem>M.B.S</asp:ListItem>
            </asp:DropDownList>&nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator2"
                runat="server" ControlToValidate="ddlCertificate" ErrorMessage="RequiredFieldValidator">Please choose your certificate</asp:RequiredFieldValidator><br />
            <asp:Button ID="Button2" runat="server" Text="GO" Width="50px" /></div>
    
    </div>
    </form>
</body>
</html>
